package com.learnyou.server.xingzuo.dao.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.learnyou.server.xingzuo.dao.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 宠物基本信息
 * </p>
 *
 * @author heweifeng
 * @since 2023-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_device")
@ApiModel(value="Device对象", description="宠物基本信息")
public class Device extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备序列号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "头像")
    @TableField("head_pic")
    private String headPic;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "品种")
    @TableField("variety")
    private String variety;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value = "体重")
    @TableField("weight")
    private Double weight;

    @ApiModelProperty(value = "绝育情况")
    @TableField("sterilisation")
    private String sterilisation;

    @ApiModelProperty(value = "肥胖程度设定（1:瘦  5: 正常 9:肥胖）")
    @TableField("obesity_degree")
    private Integer obesityDegree;

    @ApiModelProperty(value = "主账号id")
    @TableField("master_account")
    private Integer masterAccount;

    @ApiModelProperty(value = "设备最后状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "设备等级")
    @TableField("level")
    private Integer level;


}
